package com.ss.android.lockscreen.views;

import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import android.view.View;

public class AutoFitViewPager extends c {
    public AutoFitViewPager(Context arg1) {
        super(arg1);
    }

    public AutoFitViewPager(Context arg1, AttributeSet arg2) {
        super(arg1, arg2);
    }

    public void onMeasure(int arg9, int arg10) {
        int v7 = 1073741824;
        int v0 = AutoFitViewPager.getDefaultSize(0, arg9);
        if(v0 > 0) {
            v0 -= this.getPaddingLeft() + this.getPaddingRight();
        }

        int v1 = 0;
        int v3 = 0;
        while(v1 < this.getChildCount()) {
            View v4 = this.getChildAt(v1);
            v4.measure(View.MeasureSpec.makeMeasureSpec(v0, v7), View.MeasureSpec.makeMeasureSpec(0, 0));
            int v4_1 = v4.getMeasuredHeight();
            if(v4_1 > v3) {
                v3 = v4_1;
            }

            ++v1;
        }

        if(v3 != 0) {
            arg10 = View.MeasureSpec.makeMeasureSpec(v3, v7);
        }

        super.onMeasure(arg9, arg10);
    }
}

